package io.renren.modules.meta.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.meta.dao.EventSubjectDao;
import io.renren.modules.meta.entity.EventSubjectEntity;
import io.renren.modules.meta.service.EventSubjectService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("eventSubjectService")
public class EventSubjectServiceImpl extends ServiceImpl<EventSubjectDao, EventSubjectEntity> implements EventSubjectService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EventSubjectEntity> page = this.page(
                new Query<EventSubjectEntity>().getPage(params),
                new QueryWrapper<EventSubjectEntity>()
        );

        return new PageUtils(page);
    }

}